package com.tubi.MyAtomThread1;

import java.util.concurrent.atomic.AtomicInteger;

public class MyAtom  extends  Thread{
    AtomicInteger ac=  new AtomicInteger(0);
    @Override
    public void run() {
        for (int i = 0; i <100 ; i++) {
            int i1 = ac.incrementAndGet();
            System.out.println("送完了"+ i1);
        }
    }
}
